// 反思报告详情
export interface AssignInfo {
    course_id: number
    course_name: string
    created_at: string
    creator_id: number
    description: string
    end_date: string
    id: number
    is_hidden: number
    sort_order: number
    start_date: string
    submission: null | Submission
    title: string
    total_score: string
    unit_id: 1
    updated_at: string
    stats: SubmissionSummary
    criteria: {
        name: string
        title: string
        negative: string
        positive: string
    }[]
}

// 学生提交反思报告记录信息
export interface Submission {
    // 学生提交反思报告记录信息
    id: number
    created_at: string
    creator_id: number
    file_url: string
    graded_by: number // 评分教师ID
    graded_time: string // 评分时间
    is_locked: number // 是否可以修改 0: 可以, 1: 不可以
    late_date: string // 延期日期（到指定日期）
    overall_status: number // 整体状态： 1待评分、2通过、3未通过
    reference_id: number
    reflection_id: number // 反思报告ID
    score: number // 得分
    score_result: {
        comment: string
        is_passed: boolean
        name: string
        negative: string
        positive: string
        title: string
    }[] // 评分标准结果
    student_id: number // 学生id
    submission_status: number // 提交状态：1草稿、2已提交、3已退回、4已重新提交
    submission_time: string // 提交时间
    teacher_comment: string // 教师整体评语
    updated_at: string
    upload_time: string
    // 查重信息
    similarity_finish: number
    similarity_hook_num: number
    similarity_link: string
    similarity_per: string // 相似度百分比（查重结果）
    similarity_readiness: string // 查重进度的百分比
    similarity_status: string // 相似度检测状态
}

// 老师查看反思报告的提交记录汇总信息
export interface SubmissionSummary {
    drafts: number
    need_grade: number
    participants: number
    submitted: number
}

export interface AssignReport {
    id: number
    avatar_url: string
    code: string
    email: string
    file_url: string
    first_name: string
    graded_by: string
    graded_time: string
    is_locked: number
    last_name: string
    late_date: string
    overall_status: number
    score: number
    similarity_percentage: string
    similarity_report_url: string
    similarity_status: string
    student_id: number
    submission_status: number
    submission_time: string
    teacher_comment: string
    updated_at: string
}

export interface AssignDuplicate {
    id: number
    reflection_id: number
    student_id: number
    file_url: string
    similarity_status: string
    similarity_readiness: string
    similarity_per: string
    similarity_link: string
    similarity_finish: number
    similarity_hook_num: number
    updated_at: string
}
